<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FDUI</title>
<!-- css -->
<link href="../style/fdui.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body{font-size: 12px;background-color: white;}
</style>
<!-- lib -->
<script type="text/javascript" src="../src/FDLib/FDLib.js"></script>
<script type="text/javascript" src="../src/JsMap.js"></script>
<script type="text/javascript" src="treeData.js"></script>
<script type="text/javascript">
FDLib.setImportOption({appDir:'../src/'}).importJS('FDTree');
var tree;
window.onload = function() {
	tree = new FDTree({
		domId:'menu'
		,data:treeData
		,clickToggle:true
		,onclick:function(node) {
			if(node.url) {
				parent.mainFrame.location.href = node.url;
			}
		}
	});
}
</script>
</head>
<body>
<div>
	<a href="javascript:tree.expandAll()">全部展开</a> <a href="javascript:tree.collapseAll();">全部收缩</a>
</div>
<div id="menu"></div>
</body>
</html>